package com.b511.swpu.cementbackend.repository;

import com.b511.swpu.cementbackend.entity.MAIN_WELL;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

public interface MAIN_WellRepository extends JpaRepository<MAIN_WELL, String>,
        JpaSpecificationExecutor<MAIN_WELL> {

    @Transactional
    void deleteByRelationCode(String relationCode);

    @Transactional
    void deleteByWellCode(String wellCode);

    @Transactional
    MAIN_WELL findByRelationCode(String relationCode);

    @Transactional
    MAIN_WELL findByWellCode(String wellCode);
}
